
local nl = require'luaNumeric'
local unity = require'luaUnity';

tt = {nl=nl,Geometry=Geometry,math=math,
Gallop=Gallop,
unity=unity,
}
--tt = {Gallop=Gallop}
--tt = {}
--tt['Gallop.SBRApp']=Gallop.SBRApp

function can_use_pairs(t)
    local success, iterator = pcall(function() return pairs(t) end)
    return success and type(iterator) == "function"
end



function print_keys( key, sub_table , nest)
	if type(sub_table) ~= 'table' then return end;
	if can_use_pairs(sub_table) == false then return end;
	--if nest > 2 then return end;
	--print(key,type(sub_table))
	for k,v in pairs(sub_table) do 
		if type(v)=='function' or  type(v)=='table' then 	
			--print( 'apis->add(QString("'..key..'.'..k..'"));' )
			--print( 'apis->add(QString("'..k..'"));' )
			print('"'..key..'.'..k..'",')
			print('"'..k..'",')
			
		end
		if type(v)=='table'  then 	
			print_keys(key..'.'..k,v,nest+1)
		end
	end
end
for k,v in pairs (tt) do 
	print_keys(k,v,1)
end
